package org.zhadoop.stream.cql.hooks;

import org.zhadoop.stream.cql.DriverContext;
import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.semanticanalyzer.analyzecontext.AnalyzeContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

/**
 * 命令解析的钩子
 * 
 * 在每个命令解析之前和解析之后，执行一些动作
 */
public class CommandAnalyzehook implements SemanticAnalyzeHook {

	
	@Override
	public boolean validate(ParseContext parseContext) throws SemanticAnalyzerException {
		return false;
	}

	@Override
	public void preAnalyze(DriverContext context, ParseContext parseContext) throws SemanticAnalyzerException {

	}

	@Override
	public void postAnalyze(DriverContext context, AnalyzeContext analyContext) throws SemanticAnalyzerException {
	}


}
